package nl.vu.few.ibivu.biomodels.client.ui.cytoscapeweb;

import java.util.HashMap;
import java.util.Map;


import com.smartgwt.client.widgets.plugins.Flashlet;

public class CytoscapeWebCanvas extends Flashlet {
	
	private static String flashurl = "/swf/CytoscapeWeb.swf";
	String swfId;
	
	public CytoscapeWebCanvas(CytoscapeWeb cytoscape) {
		super();
		swfId = cytoscape.getId();
		setID(swfId + "_");
		setName(swfId);
		setSrc(flashurl);
		setSize("100%","100%");
		this.setPluginsPage("http://www.adobe.com/go/getflashplayer");
		
		Map<String, String> params = new HashMap<String, String>();
		params.put("allowscriptaccess", "always");
		params.put("wmode", "opaque" );	
		params.put("quality", "high");
		params.put("flashvars", "id=" + swfId);
		params.put("id", swfId);
		params.put("bgcolor", "#ffffff");
		
		this.setParams(params);
		
		this.setCanSelectText(true);
		
	}
	
	

}
